package cn.jarlen.jwt.tools.antivirus;

/**
 * @author jarlen
 * Create by 2024/6/28 16:56
 */
public class CVELib {

    public static final String CVE_TABLE = "CVE_LIB";

    private long id;
    private String cve;
    private String cveLevel;
    private String cveDesc;
    private String patchVer;
    private String affectedVersion;
    private String system;

    public static StringBuffer buffer;

    static {
        buffer = new StringBuffer();
        buffer.append("CREATE TABLE ");
        buffer.append(CVELib.CVE_TABLE);

        buffer.append(" (");
        buffer.append("ID");
        buffer.append(" INTEGER PRIMARY KEY AUTOINCREMENT  NOT NULL,");

        buffer.append("CVE");
        buffer.append(" TEXT,");

        buffer.append("CVE_LEVEL");
        buffer.append(" TEXT,");

        buffer.append("CVE_DESC");
        buffer.append(" TEXT,");

        buffer.append("PATCH_VER");
        buffer.append(" TEXT,");

        buffer.append("AFFECTED_VERSION");
        buffer.append(" TEXT,");

        buffer.append("SYSTEM");
        buffer.append(" TEXT");

        buffer.append(")");
    }


    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getCve() {
        return cve;
    }

    public void setCve(String cve) {
        this.cve = cve;
    }

    public String getCveLevel() {
        return cveLevel;
    }

    public void setCveLevel(String cveLevel) {
        this.cveLevel = cveLevel;
    }

    public String getCveDesc() {
        return cveDesc;
    }

    public void setCveDesc(String cveDesc) {
        this.cveDesc = cveDesc;
    }

    public String getPatchVer() {
        return patchVer;
    }

    public void setPatchVer(String patchVer) {
        this.patchVer = patchVer;
    }

    public String getAffectedVersion() {
        return affectedVersion;
    }

    public void setAffectedVersion(String affectedVersion) {
        this.affectedVersion = affectedVersion;
    }

    public String getSystem() {
        return system;
    }

    public void setSystem(String system) {
        this.system = system;
    }


}
